Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA2: Searchathon fixes #412

Merged
merged 11 commits into from
Oct 18, 2024
Merged

QA2: Searchathon fixes #412

merged 11 commits into from
Oct 18, 2024

Conversation

nonword
Copy link
Member

@nonword nonword commented Oct 17, 2024

This is a PR with several small fixes coming out of the Searchathon session, which are not included in the other mega QA2 PR

Changes:

  • Adds support for journal_title as a search scope, implemented identically to how RC built it - to ease debugging and because it ought to be implemented on the back-end
  • Support "smart" quotes in quoted searches
  • standard-number and callnumber searches match on new case-insensitive shelfmark field
  • Revised isbn "clean" matching (ignore anything that isn't a number or 'x') and added support for issn clean matching
  • Remove default boost on phraseMatch, which was adding noise to quoted contrib name searches
  • Adds updatedAtDate (ISO string)
  • Add bnum validation to findbyuri route

Updates:
 - Add search_scope=journal_title (to ease testing and because it really ought
   to be implemented in the discovery-api, not the front-end
 - Match on shelfmark lowercased
 - Allow smart-quotes in fully-quoted searches
 - Remove boost=1 on quoted creator/contrib phrase matching
 - Match on new idIsbn.clean and idIssn.clean (added 2024-10-17)
 - Updates qa index to 2024-10-16 (added shelfMark.keywordLowercased)
Copy link
Contributor

@charmingduchess charmingduchess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! thanks for adding the invalid bnumber response and updated date string.

@@ -22,6 +22,10 @@ class ElasticQueryBuilder {
case 'title':
this.buildTitleQuery()
break
case 'journal_title':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Should we ticket the work to remove that transformation from RC?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, although no rush.

@nonword nonword merged commit 2173ce7 into qa2-refactor Oct 18, 2024
4 checks passed
@nonword nonword deleted the qa2-refactor-searchathon-fixes branch October 18, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants